Zyra Guardian Pro

Buy on MQL5

6. Protection System

Zyra Guardian Pro includes multiple layers of protection to help preserve your capital, reduce exposure to bad conditions, and lock in profits over time. These tools work independently from your broker's stop loss or margin calls and are designed to make the EA more resilient.

The setting Action to apply when exiting a user-defined session offers three behaviors: Close forces an immediate exit of all trades when protection limits are hit, Pause only suspends fresh entries while letting existing positions manage themselves, and Continue keeps normal management active but blocks new orders. These options shape the trading experience: an aggressive mode like Close secures capital instantly at the cost of interruptions, while Pause or Continue let the strategy breathe without abandoning open positions.

Daily suspension: when the daily limits are breached, the internal flag g_tradingSuspendedForDay flips to true. The EA stops opening new positions until the next daily reset. If Close all positions when the daily limit is reached is enabled, the suspension also forces every remaining position to close in order to enforce the circuit breaker.

Weekly Suspension and Weekly Auto-Close

Weekly limits (Maximum realised weekly loss allowed, Weekly profit target, Calculation mode for the weekly PnL) follow the same logic as their daily counterparts. Once the week’s cumulative performance crosses a threshold, the dedicated flag g_tradingSuspendedForWeek triggers an extended pause: no new trades are allowed until the Monday reset. With Close all positions when the weekly limit is reached enabled, Zyra also closes every open position before switching into suspension, locking the weekly result in place.

Head to Money Management for a complete breakdown of the parameters and examples that compare them with the daily limits.

Interaction with the session exit action: regardless of the time horizon (daily or weekly), the selected mode (Close, Pause, Continue) dictates the exact reaction. Close forces liquidation, Pause blocks fresh entries, and Continue lets ongoing management run while still preventing new orders. Combining Close all positions when the weekly limit is reached with Pause, for example, guarantees that Zyra closes trades at the weekly breach and then remains blocked until the next week without abandoning the current basket management.

Capital Panel: the CapitalPanel now displays a weekly status in addition to the daily line. Messages such as “Weekly limit reached” (red) or “Weekly target hit” (green) instantly confirm whether the circuit breaker is active. The panel also shows whether the automatic closure occurred, making it easy to confirm that Close all positions when the weekly limit is reached triggered as expected.

CapitalPanel

The CapitalPanel appears in the upper-left corner of the chart and summarizes the session status. The first line (white) shows the current session and the countdown to the next reset. The next line (green or red) displays cumulative daily PnL. Finally, a yellow alert line highlights whether trading is suspended or resumed (for example, "Trading paused"). Keeping an eye on this panel instantly reveals whether the session is active, whether a drawdown is blocking new entries, and if daily performance stays within the defined limits.

1. Global Stop Loss

2. Equity Threshold (StopTradingEquity)

3. Spread Filter

4. Profit Lock (Capital Locking System)

5. Trailing Stop System

6. Max Trade Limiter

Recommendations

Next Step

Proceed to the Indicators section to discover the available signals and how to configure them for your strategy.

7. Portfolio Management

How it works:

Before opening a new trade, Zyra scans all open positions on the account. If the number of different symbols already traded by Zyra (using the Magic Prefix) has reached the limit defined in MaxSymbolsAllowed, the EA will not open a new position.

Example:

Benefits: